package org.aswing;

extern class DefaultButtonModel extends flash.events.EventDispatcher, implements ButtonModel {
	function new() : Void;
	function addActionListener(p0 : Dynamic, ?p1 : Int, ?p2 : Bool) : Void;
	function addSelectionListener(p0 : Dynamic, ?p1 : Int, ?p2 : Bool) : Void;
	function addStateListener(p0 : Dynamic, ?p1 : Int, ?p2 : Bool) : Void;
	function getGroup() : ButtonGroup;
	function isArmed() : Bool;
	function isEnabled() : Bool;
	function isPressed() : Bool;
	function isRollOver() : Bool;
	function isSelected() : Bool;
	function removeActionListener(p0 : Dynamic) : Void;
	function removeSelectionListener(p0 : Dynamic) : Void;
	function removeStateListener(p0 : Dynamic) : Void;
	function setArmed(p0 : Bool) : Void;
	function setEnabled(p0 : Bool) : Void;
	function setGroup(p0 : ButtonGroup) : Void;
	function setPressed(p0 : Bool) : Void;
	function setRollOver(p0 : Bool) : Void;
	function setSelected(p0 : Bool) : Void;
	private var armed : Bool;
	private var enabled : Bool;
	private var group : ButtonGroup;
	private var pressed : Bool;
	private var rollOver : Bool;
	private var selected : Bool;
	private function fireActionEvent() : Void;
	private function fireSelectionChanged() : Void;
	private function fireStateChanged() : Void;
}
